import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

const store = new Vuex.Store({
  state: {
    publicKey: '',
	login: {
		User: '',
		Password: '',
		Token: ''
	}
  },
  mutations: {
    getPublicKey (state, step) {
      state.publicKey = step
    },
	getLoginInfo (state, step) {
		state.login.User = step.User
		state.login.Password = step.Password
		state.login.Token = step.Token
	}
  },
  actions: {}
})
export default store